home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.1 (Developer) [x86]
/
NeXT Step 3.1 Intel dev.cdr.dmg
/
NextDeveloper
/
Examples
/
AppKit
/
Draw
/
graphicsUndo.subproj
/
BringToFrontGraphicsChange.m
< prev
next >
Wrap
Text File
|
1992-02-09
|
759b
|
35 lines
#import "drawundo.h"
@interface BringToFrontGraphicsChange(PrivateMethods)
- redoDetails;
@end
@implementation BringToFrontGraphicsChange
- (const char *)changeName
{
return NXLocalStringFromTable("Operations", "Bring to Front", NULL, "The operation of bringing a graphical entity or group of graphical entities to the front of all other graphical entities.");
}
- redoDetails
{
int count, i;
id detail, graphic;
List *allGraphics;
allGraphics = [graphicView graphics];
count = [changeDetails count];
for (i = count; i >= 0; --i) {
detail = [changeDetails objectAt:i];
graphic = [detail graphic];
[allGraphics removeObject:graphic];
[allGraphics insertObject:graphic at:0];
}
return self;
}
@end